<template>
  <div class="industry-item" :style="{backgroundColor:data.background}">
    <img :src="data.icon" alt="">
    <div class="right">
      <span class="label">{{ data.label }}</span>
      <span class="num">{{ data.num }}吨</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'IndustryItem',
  props: {
    data: {
      type: Object,
      default: () => ( {} )
    }
  }
}
</script>

<style lang="scss" scoped>
.industry-item {
  width: 2.92rem;
  height: .96rem;
  display: flex;
  //justify-content: space-between;
  align-items: center;
  padding: .24rem;
  box-shadow: 0px 3px 15px 1px rgba(119, 119, 119, 0.0980);
  margin-bottom: 18px;

  img {
    width: .54rem;
    height: .54rem;
    margin-right: .24rem;
  }

  .right {
    display: flex;
    flex-direction: column;
    color: #1C1C28;
    //text-align: right;

    .label {
      margin-bottom: 10px;
      font-size: .18rem;
    }

    .num {
      font-size: .26rem;
    }
  }
}
</style>
